#!/bin/bash
#离线安装docker-composei(二进制)

tar -xf docker-compose-linux-x86_64.tar.gz

sha256sum --check docker-compose-linux-x86_64.sha256

if [ $? -eq 0 ]; then
	sudo install -o root -g root -m 0755  docker-compose-linux-x86_64 /usr/local/bin/compose
	compose --version
fi

sudo mv docker-compose-linux-x86_64 /tmp
sudo rm -f /tmp/docker-compose-linux-x86_64 >/dev/null
